package Slice

import (
	"fmt"
	"strings"
)

//int 切片转字符串  以","分隔
func SliceIntToString(data []int) string {
	var separator = ","
	return strings.Replace(strings.Trim(fmt.Sprint(data), "[]"), " ", separator, -1)
}

/**
字符串切片转字符串
 */
func SliceToString(data []string) string  {
	var separator = ","
	return strings.Join(data, separator)
}
